package com.ldc.framework.adapter

import com.ldc.commonres.common.BaseRvAdapter
import com.ldc.commonres.common.BaseRvViewHolder
import com.ldc.framework.R
import com.ldc.framework.model.RankModel

class RankAdapter : BaseRvAdapter<RankModel>(R.layout.framework_layout_view_item_rank) {
    override fun convertTo(holder: BaseRvViewHolder, data: RankModel, position: Int) {
        holder.setText(R.id.tv_name, "用户名：${data.username}")
        holder.setText(R.id.tv_name2, "等级：${data.level}")
        holder.setText(R.id.tv_name3, "排行：${data.rank}")
    }
}